package com.donghu;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class C {

    public String read() {

        A a = new A();

        try{
            BufferedReader bufferedReader = new BufferedReader(new FileReader(a.getTMP()));// 打开文件
            String read = bufferedReader.readLine();// 读取文件信息
            System.out.println("成功读取。文件内容为：" + read);
            return read;// 返回信息
        }catch (IOException e) {
            System.out.println(e);
        }
        return null;
    }
}
